﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeFile="AdminProduct.aspx.cs" Inherits="Admin_AdminProduct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table style="width: 100%;">
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
            <asp:Button ID="btnAddNew" runat="server" onclick="btnAddNew_Click" 
                Text="Add New Product" />
        </td>
    </tr>

</table>
    <asp:GridView ID="gvProducts" runat="server" AutoGenerateDeleteButton="True" 
        AutoGenerateEditButton="True" CellPadding="4" onrowcancelingedit="gvProducts_RowCancelingEdit" 
        onrowediting="GridView1_RowEditing" Width="583px" 
        onrowdeleting="gvProducts_RowDeleting" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px">
        <Columns>
            <asp:BoundField DataField="ProductID" HeaderText="ID" />
            <asp:BoundField DataField="ProductName" HeaderText="Name" />
            <asp:BoundField DataField="ProductPrice" HeaderText="Price" />
            <asp:BoundField DataField="Unit" HeaderText="Unit" />
            <asp:BoundField DataField="Quantity" HeaderText="Quantity" />
            <asp:ImageField DataImageUrlField="imageLink" HeaderText="Image" ControlStyle-Width="150" ControlStyle-Height="150">
            </asp:ImageField>
            <%--<asp:TemplateField> 
                <ItemTemplate>
                    <asp:Image ImageUrl='<%# Eval("ImageLink") %>' runat="server"/>
                </ItemTemplate>
                    
            </asp:TemplateField>--%>
        </Columns>
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#330099" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <SortedAscendingCellStyle BackColor="#FEFCEB" />
        <SortedAscendingHeaderStyle BackColor="#AF0101" />
        <SortedDescendingCellStyle BackColor="#F6F0C0" />
        <SortedDescendingHeaderStyle BackColor="#7E0000" />
    </asp:GridView>
</asp:Content>
